add endOfDirectory