file flattener