fix newline in opts for correct record count