add log messages for performance monitoring