refactor parse_responses