add inputfile functionality