added simple TCP handler wrapper