fix routes to get rid of errors