restore deploy script