updated publish command to send to remote broker