replace app.config with os.environ