a few adaptions to relations in base.py