added message reading