moved from_dict, to_dict, and unroll to adict