added ca_env for grouping