some hacks to get links to work; currently unstable