add error handlers for worker, modified DP