basic implementation if window stream handler