support enabling/disabling thrift and native transport

reviewed by @timiblossom