add support for relative `root dir`