added file input

/cc @nbryan @mgamba