move cgate to cgate_mt
single threaded cgate