support palantir pretty print [closes #382]