added router, writes path to client