implemented packet/message class generation