added a cache for relations
Merge remote-tracking branch 'origin/master'