open with mode