much work on structure validation settings and scan gui