change initLibrary to initializeLibrary