fixing router.py