working on restore
restore implemented first draft