add tree listing

initial tree listing functionality added