step1 to TCP API mode (POC, not production ready at all!)