moving root definition into addRoute