changed batch API to accept IEnumerables instead of params object [] because the latter can be deceitful