added message replay feature