changed settings to use environment variables, not hardcode