improved error messages on batch operations