add command line argument parsing
fixed