custom hooks to bypass jugglingdb for compound.js