expose minTimePerSource parameter
make error message more informative
avoid a few possible crashes
expose minTimePerSource