port the callbacks initialization