made some fixes to routes