script to change jobs on the fly