started working on restore script