working version after rename,needs to be  checked: job creation and running parts