get contexts for edits