rename to avoid shadowing built-in type 'file'