forget: pass around uipathfn and use instead of m.rel() (API)

Authored by martinvonz.