update routes, api and APICtrl