now can generate topology data better