use new api in case