fix new api