add fsync control ( thanks ezekeel )