wireup to message server and fix rest post call