add fun to hookglobal