fixed file gathering