adding support for reference relationship