cleaned up stream get operation