getting rid of deprecation warnings, adding libs