fixed max iter option in command line tool