changed Link.Session.link to a method parameter