implement MasterController