fixed an 'undefined' bug - IO isn't lazy enough