initial version of domains, not yet compiling