add support for directory serving