changes needed for integration with sharelatex-web

breaks demos in this repo