new manual endpoint discovery function (tm)