client parses response from server