added logging for matt controller