unify knddomain handling