beginnings of controller