prevnext debug, restore