only add mate repo once
only add catalyst repo once
better video detect, misc tweaks