moved api key out of script and into config file