initial regression test and refactored the topology interface

this is required by NewBootstrap interface. So that least all the client of Bootstrap can be fixed. I also wired this task init up so it is used.