add debug statements for message and account