rcc: return the output back to client