including docs for chaining
(cherry picked from commit 51aef3b04d321016a2e7988bfaa51bd9bbac84a5)