more code
stopped hardcoding 0,1 for stdin,stdout
pass 'make check_all'