update with new error class