ENH: addressed changes suggested by @jairideout for io