pass hook functions references to globals
version 0.15.1