add some addons hook function