added some topology stuff