add routes and handlers