clean up discovery