modified rootpath building