fix directory level stuff