added directory selection