added error buffer for dual arguments callbacks