refactored dosheaders, added ntheaders