moved argument parsing function to won util file