added logging messages back