updated generic job with getopts