fixed tmp-discovery