headers: first pass at proper external file attributes with mode handling.