add some hooks