new documents api changes