add messaging functionality