new mode support in open file