improved ScanStream