add code for reading arguments.