auto-migration M4 changes
updated StringBuffer.add to StringBuffer.write