more work on structure scanning/parsing.  parsing mostly done, scanning
mostly done.  need output of scanned -> template