new message and encryption structure now working