simple printPG and automatic decoding of values