tweaks
Use list instead of StringIO