more efforts to get markov switching working