use std::io::IoResult instead of std::fmt::Result