ensure args is an array for RPC