handle max count of sources

@pebeah would appreciate it when you test everything so we don't
oversee something :-)