adds a module to try errors and emit them as events; #6
patch public methods; fixes #6