move router setup to own file