mimic browser-router for the server