added scratchFolder