added thirft-mode