small fixes domain_add