init router earlier