fix support new api