apiKey always gets default value