changed command line argument processing