Added PEX hook and fixed shadded repos