added more multi-sessions tests
simpler RPC client caching
more modular code