search & cleanup