[FIX] Various IO fixes