[MIG]convert to new API