move to new restful api
adjust routes for new api