Feature/streamreader in protocol