implemented job cancelation