split code module into separate file and release the privClient instead of treeOnly
use files before getting them
use files before getting them