fixing merge_env_vars: -1 = default-off, 0 = off, 1 = on