fixing previous use flag breakage and adding option disabling shell-exec-ui