todo:portal and search communication with tcp