added support for post callbacks