add generic relations