failsafe to open output path