header fixed for stdin problem, better delta debug