added stats field to BucketDataSource
added stats