init context state with NULL