add write locate file