refactored give up strategy. new cmd line param