removed direct switch jsonRPC calls