add status to TCP function call