updated error handling for when init fails