improved getprivatejson