enhanced logging for row count and added to extract