HG-12 use write instead of append