tcp gate primary works