added apiKey support for native apps