update hook_flag_read