able to init router from file