adding functions to include pandoc call