send data in separate thread