add HWM support. Closes #19