use dio to replace fileinput