refactored Map Object is Router and App requires an instanceof Router