adapt to new mcs sdk.