fix appPath and test
rewrite to use a json parser that works on object end (not new line)