rel_type for embedded needs to be inside transaction