export handle function for tsrp