added env-var-based configuration