add limit for logging