add saving/loading for fomation