allow output dir to be selected
cleanup