changed the library from being a Singleton