router.js: use utils functions