implement receiving new message routine