fix for returning multiple relations from getRelation(s).
complete up to inference section.