this will help deduplicate tmate debug code throughout. Signed-off-by: Deepika Upadhyay <deepika@koor.tech>