catch Errors as well