changin dataoutput stream to printstream for protocol commands