adding some logging messages