dispatch scripts and rerun script now properly handle being rerun