now accepts command line arguments