remove unnecessary debug, fix one bad header parsing