redefine routes and fix params