added tcp api, just stubs for now