improved run and autosubmit scripts