added error handler
0.0.5