allow setting directory