update to match latest web api endpoints