added rudimentary command argument parsing