GPG upgrade
persistent undo and side numbers