some updates to the code on treating empty and single meas files