update refresh_namelist. TODO: reintroduce condition