moved set of api key and secret to configuration block