save and load character definition