fixed knitr methods