reorganizing package tree