sendf and send handler improvements