added buffer for stream IDs closes #19