updated router.js with config debugging information