added prettyprint support
minor fix for prettyprint