initial attempt - issues with dynamic buckets