online_flag_list should be a function