add support for directory prefix