adds support for failure exception