add pinto support and update libs