add line number in error messages
only print debug info when there are no input files