added path stuff and katex rending