added in some logging messages