added error_handler parameter to all rpc calls