add getSession; script error print out; even parse json error, don't call fn again