changed send handling to be in sync with 0mq