updated topo object creation function to the latest version.