changed stream classes for responsiveness