typos + dirname