trying a fix for the RESPONSE is not JSON error