added persistent option for links (on by default)