document pipeline