set job variables correctly