changed dir to lowercase & minor changes