sort-of working copy of 517 hw parser.