work on message validation and parsing