overload createContext() method