updated router to ignore hashes when matching