enhanced logging