export replace-hook to make it useful to the world.