add error handler
1.0.16