now reads command line arguments