supply a mode argument to open