Add mode to backend with default as tcp

add mode option to backend with default to TCP