added discuss code for native apps