added safety net on init