fixed command bugs, changed domain constructors