add rescue when response was invalid