write last id to a file on disk
resolved conficts