switch from storing api_key in api_key.txt to env variables