classes for json messages