start writing client