adapt for SDK 7.0