shorten extractLinks