added check fo io

Ignore-this: 49bb2f9680fe7021afdffd602762de81

darcs-hash:20140712053111-c21fe-7fdcb197c6ebde6600b829b4acded0026bb95ada