ignore empty line. need to work out how to test stdin