added getter functions for messages