bug when grabbing the api_key from the config file