Title: Stochastic optimal control and regime switching