iterate through command line args