stack stream improvements