add parse_header
bugfix for DIRECT