make the S3 stuff work; make the indexes get written even though they're a bit stupid; docs