added support for environments in config file