add some hooks in Model