improvements to friend tree production, and validation scripts