fixed route functionality and clear route functionality.