support generic dict in data structure