add global error handler & bump to 0.1.12