generic script for jobs