setup message class