change send doc lines using tpds to work with stream and doc store