def fetch_pak( shortcut )

    sources = config.map_fetch_shortcut( shortcut )
      
    if sources.empty?
      puts "*** error: no mapping found for shortcut '#{shortcut}'."
      exit 2
    end

    sources = sources.select { |s| s.include?('.txt.quick') || s.include?('.quick.txt') }

    if sources.empty?
      puts "*** error: no quick mapping found for shortcut '#{shortcut}'."
      exit 2
    end

    src = sources[0]
    
    puts "  Mapping quick shortcut '#{shortcut}' to: #{src}"
  
 
    # src = 'http://github.com/geraldb/slideshow/raw/d98e5b02b87ee66485431b1bee8fb6378297bfe4/code/templates/fullerscreen.txt'
    # src = 'http://github.com/geraldb/sandbox/raw/13d4fec0908fbfcc456b74dfe2f88621614b5244/s5blank/s5blank.txt'
    uri = URI.parse( src )
    logger.debug "scheme: #{uri.scheme}, host: #{uri.host}, port: #{uri.port}, path: #{uri.path}"
    
    pakname = File.basename( uri.path ).downcase.gsub('.txt','')
    pakpath = File.expand_path( "#{config.config_dir}/templates/#{pakname}" )
    
    logger.debug "pakname >#{pakname}<"
    logger.debug "pakpath >#{pakpath}<"
 
    Pakman::Fetcher.new.fetch_pak( src, pakpath )
  end
def fetch_pak( shortcut )

    sources = config.map_fetch_shortcut( shortcut )
      
    if sources.empty?
      puts "*** error: no mapping found for shortcut '#{shortcut}'."
      exit 2
    end

    sources = sources.select { |s| s.include?('.txt.quick') || s.include?('.quick.txt') }

    if sources.empty?
      puts "*** error: no quick mapping found for shortcut '#{shortcut}'."
      exit 2
    end

    src = sources[0]
    
    puts "  Mapping quick shortcut '#{shortcut}' to: #{src}"
  
 
    # src = 'http://github.com/geraldb/slideshow/raw/d98e5b02b87ee66485431b1bee8fb6378297bfe4/code/templates/fullerscreen.txt'
    # src = 'http://github.com/geraldb/sandbox/raw/13d4fec0908fbfcc456b74dfe2f88621614b5244/s5blank/s5blank.txt'
    uri = URI.parse( src )
    logger.debug "scheme: #{uri.scheme}, host: #{uri.host}, port: #{uri.port}, path: #{uri.path}"
    
    pakname = File.basename( uri.path ).downcase.gsub('.txt','')
    pakpath = File.expand_path( "#{config.config_dir}/templates/#{pakname}" )
    
    logger.debug "pakname >#{pakname}<"
    logger.debug "pakpath >#{pakpath}<"
 
    Pakman::Fetcher.new.fetch_pak( src, pakpath )
  end
todo rename to fetch_quick_pak??
  share/use same code in fetch too??