add invalid message id error
make the parser return code into an enum