done: now it works with stringIO.