clean unnecessary directory lookup