[imp]:improve old to new api