set relationships from server data