adding some work to the router.php