add relations handler