fixes to the hsa example