server-side check against duplicate source names
cleanup of the previous commit