see https://github.com/timvideos/streaming-system/pull/50#issuecomment-30636286