about to refactor code for 517 into hw related groups.