Title: The interaction of superconductivity with magnetism and localization