resolveRoute logic implementations