moved install function to update_hook