fixes to the binary and Connection