commented out some troublesome restore function code