parse_headers and proper attribution