lots of tweaks + make MathJax work