added inverted streams, updated main