modify topology module to support controller topology