pass single diectory not lists of files