pass :file rather than :mode