allowing the passing of directories