finally got the libraries to work