code generalization steps/opts, display CP names dynamically