update behavior of env, stack, and host