bunch of code to connect to the library
bunch of code to connect to the library