changed name of discovery to index, changed catchall link function