added thread for reading otr messages