serials rename to serials.txt and Write to file working