better printing support of messages for debugging
moved logger from HM to JB, with automatic enable/disable