fixed API_K retrieval