changing pickup of api_key for richard, and interim work on workflow