some fixes for creating square links with linkers