init and test io