added callbacks to engine