fix job script, add basic logging