add file open mode