add/update routes and api