fix incoming message to incoming frame
fix publish/subscribe, add debug, fix typo