swaped repoHkid and DomainHkid to corect posotions
updates to type system

new interfaces
hids unified