add write to file util