switched from data event to stream.read to prevent from too big command packages