upgraded one get_context method to new method