add checking to get context