added option for setting API key in environment variable, untracked api_key