change to other print / escape function.
added missing }
Merge branches 'certificate' and 'master'