write to external buffer