- added header checks for JSON response handler