adding dirname