fix for sending json response