add createContext private api