updates api for new version