some work on restore