config hacking
convert object to dict before saving