added ability to publish an ack message and added the global reg json structure