some refactor in packages for trees and selects and first version of selects