added api_key helper method