updated error catching on Init