add log messages for easier debugging