introduced default error callback