updated according to API mode of zigbee