adding postHash calls. Need to finish the message handling four functions and test.