more mods to Rmd