fixed file layout handling