add helper method for debugging contexts in a model