base functionality of easyTCP