got rid of static shared trees to prevent a race