make sure we don't save dup documents