fixing typo and typehinting checkroute method