added pretty json printer