supportying both %h  %i in same conf