fixed rootpath and scheme