switching scratch dir to temp