fixed publsihe msg finally. must ensure all binary payload