controller and logger