code reformat, multi connections on non batch protocol, delay support