treecalc legacy module