add root path support