add support for symlinked directory