attach error handler to blueprint