document stream libraries