basic tcp code added