add builddir and fix remove root