updated server to stream text to device