removing dependency on external latex server