successfully writing and reading single message