added the ability to run queries for the specified route