inspect response and return hash
handle timeout