support for directory as input document