started adding indices option for as_dictionary