added more context infos to the "Invalid message type" error
fixed message constants values