revert *loaded-libs* to ref for binary compatibility