open file working (right cases only)