full allTree
prepare support for anonymous functions