add hook globally
undone renamings for some functions