add restore function
deployed version vs. working version fix