Update for couchpotaot new api