a baseclass for controllers