add an option to disable HMM