updated router.coffee