added callback handlers for offer creation/handling