fixed silly errors in message code.  basic connection almost working now