pass context through dispatch methods (#5818)