adding error checking for icheck init