reimplemented delayed send, fixed logging