initial regression test and refactored the topology interface