restore required script