finishing the topology.xml based implementation