bug fix: we now allow directories