start thread and communicate with it