add error handler for utils