added scratch dir