fix with header parsing