add docs for context of callbacks