makes hd (hosted domain) value optional