classes to run app in various modes