add better directory selection