fix error reporting bug where exceptions were getting rethrown with e.getCause() instead of e. it is now simply e.