debug, the correct output will print, but wont be fed into ruby