few fixes to stream server