update libraries and final tweaks