added functions to get edge contexts