fixes to makeLinks