use uniqueid wherever possible for links

Signed-off-by: Blaise Fonseca <blaisefonseca@hotmail.com>