input output stuff for the test