message type is now an enumeration
Big refactoring de la mort !