no longer use deprecated tmpname, but a filename containing seconds