handling root path properly