added support for relationfield