update library for new api response