various libraries upgrades and cleaning