lotta more work
got rid of restore()
remove allpages.update