fix to use root & build root