set isInitialized = true when done