got api key working but only partly