temporary fix for changing $response

 from stdClass to array