more flexible open handling