update libs, fix errors