move ensureInitialized