using the new api