based on latest 2.7.4 changes refactored code to enable operation level
policies with alternatives.