adapt to new mdv api