fix import issues, jinja syntax for links