HMM
 - flush & close after reading/writing model