try to use generics for save/load objects