keep open files in order