make domain optional