contract_job base & some fixs