added logging messages