better dcc error handling