make sure we are storing to_dict of intermediate struct