added pretty print option flag