fix breaking change by adding function back w/ updated logic
fixed spacing, made function below call newly added function
Fix bugs in route uses detection.