[MIG]migrate to new api