refactor sameAs loading