fix mess with rootpath