#1 make domain type work