implement connect/disconnext for toftask