improved restful api