fixed main dir problem