os.SEEK_CUR instead of 1
various fixes