- use room model for general HMM
- fix 2 silent bugs