better checks for response data