handling relative root path