added the init error handler example program contributed by Chris Marshall