update configuration and environment