added barebone maincontroller