added callbacks to the wrappers