upgrade gist and unimpaired