problems with pandoc call persist