extracted to JobHelper.