removed rawbody parsing and moved to json