model for parsing messages