add reltype types, fix stuff