ensure the correct context