Revert "remove refs from objects"

This reverts commit c46248d7740b825e3b850e3a01466ecf9c13c2bd.