added rmTree() method