modular: fixed up error handler provider