refactor settings/configuration; add ability to have different environments