check the state of namelist_table instread of namelist_file