fixed mounting in stack routers, code clean up