add prettyprint to index