client before splitting it to UI thread and message receiver thread