add config from environment, rudimentary validation and writing to redis