add special directory option for arbitrary extensions