adding some debug log messages