added options to include or exclude relations from tracking