fixed a nasty bug with IO