added argument parsing
added argument parsing