making index-rebuild handle auth-key