fix routes for server