functionality to get filename from command line