improve cluster job scripts