Fix routes and config