file naming, error checking, skipping existing files