adding setsendcallback