adding scratch dir