set input filename properly