change how relations are detect so that it can work with relation proxies (aka octopus)