better doit_inputfile