moved tree traverse to services. corrected loading issues to save some ms.