updated to only include scms if they exist on the system