make hookmanager reload-safe