messaging: refactoring make message handler explicit classes, refactoing
subscribe