backwards-compatibility for plugins if they return a callback