apply new api and remove local store