added scratch directory