separate document files; start using streams