updated canRoute to fix some references to incorrect locations
updated sample