added a simple tcp control interface