process input filename as command line parameter