now reads filename from command line argument