added message recording