optimize _scanSources