update libs and cleanup