moved domain states out of deta