appenders arrays are now  darrays
refactored write called to take a struct instead of the string