more options for returning json response