fix disable/enable input

Now properly disable/enable the input file