adapt to new observe-ms api.