added tcp support for continuation tasks.