safer open handling