require directory fix