RPC: added threading + threaded stdout logging