script now accepts command line args