added support for nested exceptions