add custom relation base class