changed open/close batch to use a get_descendents helper -- rapidsms one could be compromised