revised use of scratch workspace