update to use new api spec.