main controller base