add log messages for debugging