add router.php and operation modes