New: hookmanager class is used frequently and is a factory object, so we
can move it during init of environment and use it globally.