use server keyStream instead if readStream