hack in support for a callback