handle value errors with main/sub job level