instantiate context once