changes for the new api