serialize callback and send