fix to work with new metridoc

made various changes to get the job to work