use ioutil instead of io when opening a file