restoring previous scripts