improve Parser type to support error messages. continue implementing extended peer messages.