better header parsing support under file