modification to accept a configuration file from an environment variable