added running flag to prevent main thread from modifier execution when job runs, avoids crashes