added checkOnly flag to open()