an intelligent generic tree