pass srv name as parameter