added some logging to HSA for testing