added working version of some APIs with json response, no error control yet