major changes to function to look up taxonomy rather than create a tree