added retrieve_args to retrieve command line arguments