added enum for protocol messages