change how relations are detect so that it can work with relation proxie...

sorry for before.  this now works fine in my app