fixed routes and config for production