allow spec of data pattern in bag