updated to use settings file instead of environment vars